package com.scalar.chiptrack.operations.dataentry.boardInventory.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;
import com.scalar.chiptrack.operations.dataentry.boardInventory.actioncommands.*;

/**
 * User: Ganesh
 * Date: Sep 3, 2007
 * Time: 5:03:38 PM
 */
public class BoardInventoryDataEntryActionCommandFactory
{
    private BoardInventoryDataEntryActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand(String action)
    {
        if (action == null || "processTypes".equalsIgnoreCase(action))
        {
            return new BoardInventoryDataEntryLoadProcessTypesCommand();
        }
        else if ("partNumbers".equalsIgnoreCase(action))
        {
            return new BoardInventoryDataEntryLoadPartNumbersCommand();
        }
        else if ("locations".equalsIgnoreCase(action))
        {
            return new BoardInventoryDataEntryLoadLocationsCommand();
        }
        else if ("fabLotNumbers".equalsIgnoreCase(action))
        {
            return new BoardInventoryDataEntryLoadFabLotNumbersCommand();
        }
        else if ("lotNumbers".equalsIgnoreCase(action))
        {
            return new BoardInventoryDataEntrylLoadLotNumbersCommand();
        }
        else if ("loadLotInfo".equalsIgnoreCase(action))
        {
            return new BoardInventoryDataEntryLoadLotDetailsCommand();
        }
        else if ("save".equalsIgnoreCase(action))
        {
            return new BoardInventoryDataEntrySaveCommand();
        }

        return null;
    }
}

